<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh-CN" class="ie8"> <![endif]-->
<html lang="zh-CN">
    <head>
        <meta charset="utf-8" />
        <title>登录 - {:C('c_title')} </title>
        <!-- 禁止搜索引擎收录 -->
        <meta name="robots" content="noarchive">
        <meta name="baidspider" content="noarchive">
        <meta name="googlebot" content="noarchive">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="Keywords" content="" />
        <meta name="Description" content="" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
        <!-- 网站头像 -->
        <link type="text/css" rel="stylesheet" href="__CSS__/common.css">
        <script type="text/javascript" src="__JQ__"></script>
        <script type="text/javascript" src="__YZ__"></script>
        <script type="text/javascript" src="__LY__"></script>
        <script type="text/javascript" src="__JS__/public.lib.js"></script>
        <script type="text/javascript" src="__JS__/jquery.form.js"></script>
        <script type="text/javascript" src="__JS__/jquery.submit.js"></script>
        <link type="text/css" rel="stylesheet" href="__CSS__/user/login.css">
    </head>
    <body>
        <div class="header login-header w990">
            <div class="logo-info">
                <a href="./" class="logo"><img src="__IMG__/user/logo.png" /></a>
                <span class="findpw">欢迎登录</span>
            </div>
        </div>
        <div class="login-content">
            <div class="login-banner" style="background: url('__IMG__/user/login_bg_image_0.jpg') center;">
                <div class="w990 pos-r">
                    <div id="1491728849W4rLIf" class="login-form">
                        <div class="login-con pos-r">
                            <div class="login-wrap">
                                <div class="login-tit">
                                    还不是买家？
                                    <a href="{:U('Register/mobile')}" class="regist-link color">立即注册<i>&gt;</i></a>
                                </div>
                                <div class="login-radio">
                                    <ul>
                                        <li class="active" id="login1" onclick="setTab('login', 1, 2)">手机登陆</li>
                                        <li class="" id="login2" onclick="setTab('login', 2, 2)">邮箱登录</li>
                                    </ul>
                                </div>
                                <!-- 普通登录 star -->
                                <div id="con_login_2" class="form" style="display: none;">
                                    <form id="form2" action="{:U('Login/email')}" method="POST">
                                        <div class="form-group item-name">
                                            <!-- 错误项标注 给div另添加一个class值'error' star -->
                                            <div class="form-control-box">
                                                <i class="icon"></i>
                                                <input type="text" id="username" name="user_email" datatype="e" value="" nullmsg="请输入邮箱号！" class="text" tabindex="1" placeholder="已验证的邮箱" autocomplete="off" />
                                                <div class="label Validform_checktip"></div>
                                            </div>
                                            <!-- 错误项标注 给div另添加一个class值'error' end -->
                                        </div>
                                        <div class="form-group item-password">
                                            <div class="form-control-box">
                                                <i class="icon"></i>
                                                <input type="password" id="password" name="user_passwd" datatype="*" nullmsg="请输入密码！" value="" class="text" tabindex="2" placeholder="密码" autocomplete="off" />
                                                <div class="label Validform_checktip"></div>
                                            </div>
                                        </div>
                                        <div class="form-group form-group-spe captcha" id="o-authcode">
                                            <div class="form-control-box">
                                                <i class="icon"></i>
                                                <input type="text" id="captcha_sms" name="user_code" datatype="*" class="text" tabindex="2" placeholder="验证码" />
                                                <label class="captcha"><img id="captcha_email_image" class="captcha-image" src="{:U('Public/verify')}" alt="点击换图" title="点击换图" style="vertical-align: middle;cursor: pointer;height: 40px;padding-bottom: 6px;padding-left: 10px;" onclick="this.src = '{:U('Public/verify')}?' + Math.random()"></label>
                                                <div class="label Validform_checktip"></div>
                                            </div>
                                        </div>
                                        <div class="safety">
                                            <label for="remember">
                                                <input type="checkbox" value="1" name="remember" id="remember" class="checkbox" />
                                                <span>自动登录</span>
                                            </label>
                                            <a class="forget-password fr" href="{:U('Forget/index')}">忘记密码？</a>
                                        </div>
                                        <div class="login-btn">
                                            <input type="hidden" name="act" value="act_login" />
                                            <input type="submit" name="submit" class="btn-img btn-entry bg-color" id="loginsubmit" value="立即登录" />
                                        </div>
                                    </form>
                                </div>
                                <!-- 普通登录 end -->
                                <!-- 动态登录 star -->
                                <div id="con_login_1" class="form">
                                    <form id="form1" action="{:U('Login/mobile')}" method="POST">
                                        <div class="form-group item-name">
                                            <div class="form-control-box">
                                                <i class="icon"></i>
                                                <input type="text" name="user_mobile" id="mobile" datatype="m" nullmsg="手机号不能为空！" class="text" value="" placeholder="已注册的手机号码" autocomplete="off" />
                                                <div class="label Validform_checktip"></div>
                                            </div>
                                        </div>
                                        <div class="form-group form-group-spe captcha" id="o-authcode">
                                            <div class="form-control-box">
                                                <i class="icon"></i>
                                                <input type="text" id="captcha_mobile" name="user_code" datatype="*" class="text" tabindex="2" placeholder="验证码" />
                                                <label class="captcha"> <img id="captcha_mobile_image" class="captcha-image" src="{:U('Public/verify')}" alt="点击换图" title="点击换图" style="vertical-align: middle;cursor: pointer;height: 40px;padding-bottom: 6px;padding-left: 10px;" onclick="this.src = '{:U('Public/verify')}?' + Math.random()"></label>
                                                <div class="label Validform_checktip"></div>
                                            </div>
                                        </div>
                                        <div class="form-group form-group-spe form-group-phonecode">
                                            <div class="form-control-box fl">
                                                <i class="icon"></i>
                                                <input type="text" id="smsCaptcha" name="user_sms" datatype="*" class="text" tabindex="3" placeholder="动态密码" />
                                                <input type="text" id="btn_send_sms_code" onclick="sendMobileCode();" class="phonecode" value="获取手机动态验证码" />
                                                <div class="label Validform_checktip"></div>
                                            </div>
                                        </div>
                                        <div class="safety">
                                            <label for="remember">
                                                <input type="checkbox" value="1" name="remember" id="remember" class="checkbox" />
                                                <span>自动登录</span>
                                            </label>
                                            <a class="forget-password fr" href="{:U('Forget/index')}">忘记密码？</a>
                                        </div>
                                        <div class="login-btn">
                                            <input type="hidden" name="act" value="act_login" />
                                            <input type="submit" name="submit" class="btn-img btn-entry bg-color" id="loginsubmit" value="立即登录" />
                                        </div>
                                    </form>
                                </div>
                                <div class="item-coagent">
                                    <a href="{:HOME_URL}{:U('Qlogin/login?type=qq')}" title="QQ账号登录"><i class="qq"></i>QQ登录</a>
                                    <a href="{:HOME_URL}{:U('Qlogin/login?type=weixin')}" title="微信账号登录"><i class="weixin"></i>微信登录</a>
                                    <a href="{:HOME_URL}{:U('Qlogin/login?type=sina')}" title="新浪微博账号登录"><i class="sina"></i>微博登录</a>
                                </div>
                                <!-- 动态登录 end -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 底部 -->  
    <include file="Include/footer" />
    </body>
</html>
<script type="text/javascript">

    $("#form1").Validform({
        tiptype: 3,
        showAllError:true,
    });
    $('#form1').layer({});
    
    $("#form2").Validform({
        tiptype: 3,
        showAllError:true,
    });
    $('#form2').layer({});
    
    
    function setTab(e, s, t) {
        for (i = 1; i <= t; i++) {
            var n = $("#" + e + i);
            var a = $("#con_" + e + "_" + i);
            if (i == s) {
                $(a).show();
                $(n).addClass("active")
            } else {
                $(a).hide();
                $(n).removeClass("active")
            }
        }
    }
</script>
